package com.zzu.view.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.app.ProgressDialog;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import com.zzu.R;

public class UpdateActivity extends AppCompatActivity {
    Button bt_xiugai_ret;
    Button bt_xiugai_ensure;
    private void initListener() {

        //为返回按钮添加监听效果
        bt_xiugai_ret.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        //为确认添加监听事件
        bt_xiugai_ensure.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //显示ProgressDialog
                ProgressDialog.show(UpdateActivity.this, "提示", "已修改...");
            }
        });
    }


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_update);
        bt_xiugai_ret = findViewById(R.id.bt_xiugai_ret);
        bt_xiugai_ensure = findViewById(R.id.bt_xiugai_ensure);
        //initListener();
    }
}